From cabc386252f9738c0b5b9b2b98cc05da9390b141 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Mon, 11 Oct 2010 04:59:19 +0200 Subject: [PATCH] docs: Improve reference crossing in GtkWidget docs --- gtk/gtkwidget.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index dc3c1a3828..4ca6c4e2aa 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -113,15 +113,16 @@ * * A widget that does not actually do height-for-width * or width-for-height size negotiations only has to implement - * get_preferred_width() and get_preferred_height(). + * #GtkWidgetClass.get_preferred_width() and + * #GtkWidgetClass.get_preferred_height(). * * If a widget does move content around to smartly use up the * allocated size, then it must support the request properly in * both orientations; even if the request only makes sense in * one orientation. * - * For instance, a GtkLabel that does height-for-width word wrapping - * will not expect to have get_preferred_height() called because that + * For instance, a #GtkLabel that does height-for-width word wrapping + * will not expect to have #GtkWidgetClass.get_preferred_height() called because that * call is specific to a width-for-height request. In this case the * label must return the heights contextual to its minimum possible * width. By following this rule any widget that handles height-for-width @@ -143,7 +144,7 @@ * It will not work to use the wrapper functions, such as * gtk_widget_get_preferred_width(), inside your own size request * implementation. These return a request adjusted by #GtkSizeGroup - * and by the GtkWidgetClass::adjust_size_request virtual method. If a + * and by the #GtkWidgetClass.adjust_size_request() virtual method. If a * widget used the wrappers inside its virtual method implementations, * then the adjustments (such as widget margins) would be applied * twice. GTK+ therefore does not allow this and will warn if you try @@ -157,6 +158,7 @@ * * * + * Style Properties * * GtkWidget introduces style * properties - these are basically object properties that are stored -- 2.30.2